// 公共方法
const { imgToBase64 } = require("../utils");
const { segment } = require("koishi-core");
module.exports = {
  name: "kms [message]",
  callback: async ({ session }, message) => {
    base64 = await imgToBase64(
      "./plaugins/koishi-plugin-kgqgj/public/img/1.png"
    );
    await session.send(segment("image", { url: "base64://" + base64 }));
  },
};
